package com.panshi.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

@Controller
@Slf4j
@RequestMapping("/intercept")
public class InterceptController {

    @GetMapping("/inter")
    @ResponseBody
    public Map<String,Object> intercept(){
        Map<String,Object> map = new HashMap<>();
        map.put("code",100);
        return map;
    }

}
